<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <?php include_http_metas() ?>
    <?php include_metas() ?>
    <?php include_title() ?>
    <link rel="shortcut icon" href="/favicon.ico" />
    <?php include_stylesheets() ?>
    <?php include_javascripts() ?>
    <style>
        .layui-layer-content{
            overflow:hidden;
        }
    </style>
  </head>
    <body style="overflow-y: hidden" scroll=no>

<form action="<?php echo url_for('worry/edit'); ?>" method="post" class="TwForm" style="padding-top:20px;" onSubmit="return CheckForm();">
            	<textarea name="content" id="content-t"><?php echo $worry->getContent(); ?></textarea>
                <br/>
                <input type="hidden" name="id" value="<?php echo $worry->getId(); ?>" />
                <input type="submit" style="float:left;" name="" value="保存修改" />
            </form>
<script>
<?php if($sf_user->hasFlash('success')): ?>
layer.msg('<?php echo $sf_user->getFlash('success'); ?>',{time: 1000},function(){
  parent.window.location.reload();  
});
<?php endif; ?>
	function CheckForm(){
		var content = jQuery.trim($('#content-t').val());

		if(content.length<=0){
			layer.msg('问题总有的，写点什么吧！');
			return false;
		}
		return true;
	}
</script>
        
    </body>
</html>